//
//  SKMapAnnotation.m
//  Gastrosoph
//
//  Created by 张明磊 on 12-10-25.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "SKMapAnnotation.h"

@implementation SKMapAnnotation


@synthesize string_foodName = _string_foodName;

@synthesize image_foodImage = _image_foodImage;

@synthesize string_restaurantName = _string_restaurantName;

@synthesize string_restaurantLocation = _string_restaurantLocation;

@synthesize string_distance = _string_distance;

@synthesize latitude = _latitude;

@synthesize longitude = _longitude;



- (id)initWithLatitude:(CLLocationDegrees)latitude
		  andLongitude:(CLLocationDegrees)longitude 
{
	if (self = [super init]) 
    {
		self.latitude = latitude;
        
		self.longitude = longitude;
	}
	return self;
}


- (CLLocationCoordinate2D)coordinate 
{
	CLLocationCoordinate2D coordinate;
    
	coordinate.latitude = self.latitude;
    
	coordinate.longitude = self.longitude;
    
	return coordinate;
}

- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate 
{
	self.latitude = newCoordinate.latitude;
	self.longitude = newCoordinate.longitude;
}


- (void)dealloc
{
    [_string_foodName release] , _string_foodName = nil;
    
    [_image_foodImage release], _image_foodImage = nil;
    
    [_string_restaurantName release], _string_restaurantName = nil;
    
    [_string_restaurantLocation release], _string_restaurantLocation = nil;
    
    [_string_distance release], _string_distance = nil;
    
    
    [super dealloc];
}


@end
